import {Point} from './point.js'
class Circle{
    radius = 0;
    circle_heart = null

    constructor(heart, radius){
       this.radius = radius
       this.circle_heart = heart
    }
 isPointInCircle(point){
    let distance = this.circle_heart.get_distance(point)
    return distance <=this.radius
    }
}
let point = new Point(0,0);
let c1 =new Circle(point,2)
console.log(c1);

let point22 = new Point(1,1);
let result = c1.isPointInCircle(point22)
console.log(result);